class UserInfoBean(object):
    """病人基本信息封装类
       Attributes:
          rows_index: 所在行数
          name:  病人名称
          sex：性别
          age: 年龄
          diagnosis: 诊断
          to_ice_date: 入ICU日期
          is_ards: 是否发生ARDS
          is_mechanical_ventilation: 是否机械通气
          mentality: 入院精神状态
          height: 身高
          weight: 体重
          bmi:BMI
          apache_score:APACHE 评分
          sofa_score:sofa 评分
          pn_or_en:是否PN+EN
          total_time: 总住院时间
          icu_total_time:icu时间
    """
    rows_index: int = 0
    name: str = ''
    sex: int = 0
    age: int = 0
    diagnosis_1: str = ""
    diagnosis_2: str = ""
    diagnosis_3: str = ""
    to_ice_date: str = ""
    is_ards: int = 0
    is_mechanical_ventilation: int = 0
    mentality: int = 0
    height: float = 0.0
    weight: float = 0.0
    bmi: float = 0.0
    apache_score: int = 0
    sofa_score: int = 0
    pn_or_en: int = 0
    total_time: int = 0
    icu_total_time: int = 0

    def __init__(self):
        """构造方法"""

    def to_string(self):
        """toString 方法"""
        user_str = "UserInfoBean{"
        user_str += "rows_index=" + str(self.rows_index)
        user_str += ",name=" + str(self.name)
        user_str += ",mentality=" + str(self.mentality)
        user_str += ",weight=" + str(self.weight)
        user_str += ",bmi=" + str(self.bmi)
        user_str += ",apache_score=" + str(self.apache_score)
        user_str += ",sofa_score=" + str(self.sofa_score)
        user_str += ",pn_or_en=" + str(self.pn_or_en)
        user_str += ",total_time=" + str(self.total_time)
        user_str += ",icu_total_time=" + str(self.icu_total_time) + "}"
        return user_str
